#include "MultipoleDialog.h"
#include <QApplication>


//-------------------------------------

MultipoleDialog::MultipoleDialog( Multipole * m, QWidget *parent ) :
    QDialog(parent),
    obj( 0 )
{
    resize( 185, 110 );
    buttonBox = new QDialogButtonBox( this );
    buttonBox->setGeometry( QRect( 10, 70, 160, 30 ) );
    buttonBox->setOrientation( Qt::Horizontal );
    buttonBox->setStandardButtons( QDialogButtonBox::Cancel | QDialogButtonBox::Ok );
    groupBox = new QGroupBox( this );
    groupBox->setGeometry(QRect( 25, 10, 130, 50 ) );
    spbPolesCount = new QSpinBox( groupBox );
    spbPolesCount->setGeometry( QRect( 30, 20, 70, 20 ) );
    spbPolesCount->setMinimum( 2 );

    connect( buttonBox, SIGNAL( accepted() ), this, SLOT( accept() ) );
    connect( buttonBox, SIGNAL( rejected() ), this, SLOT( reject() ) );

    setWindowTitle(QApplication::translate( "MultipoleDialog", "Dialog", 0, QApplication::UnicodeUTF8 ) );
    groupBox->setTitle(QApplication::translate( "MultipoleDialog", "\320\232\320\276\320\273\320\270\321\207\320\265\321\201\321\202\320\262\320\276 \320\277\320\276\320\273\321\216\321\201\320\276\320\262", 0, QApplication::UnicodeUTF8 ) );

    obj = m;
}

//-------------------------------------

int MultipoleDialog::Exec()
{
    int res = exec();
    if( res == QDialog::Accepted )
    {
    }
    return res;
}

//-------------------------------------
